package com.xing.binbackend.pattern.factory12.operation.lazyinit;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PaymentConfig {
    @Bean
    @Conditional(WechatEnabledCondition.class)
    public PaymentProcessor wechatProcessor() {
        return new WechatPay();
    }
}